﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xwang.Task.Model;

namespace Xwang.Task.IBll
{
    public partial interface ITaskJoinUserService : IBaseService<TaskJoinUser>
    {
        /// <summary>
        /// 获取任务分类统计信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        int[] GetTaskCountByGroup(int userId);

        /// <summary>
        /// 获取未完成的任务列表
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        List<TaskJoinUser> GetUncompleted(int userId);

        /// <summary>
        /// 获取已过期的任务列表
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        List<TaskJoinUser> GetExpired(int userId);

        List<TaskJoinUser> GetCompleted(int userId);

        List<TaskJoinUser> GetUnRecieved(int userId);
        
    }
}
